package com.utils;

import java.util.concurrent.ExecutorService;

public class ExcutorsUtils {

    public static ExecutorService executorService;

    public static void setExecutorService(ExecutorService executorService){
        ExcutorsUtils.executorService=executorService;

    }
    //关闭线程池
    public static void shutDown(){
        executorService.shutdown();
    }
    //执行任务
    public static void submit(Runnable runnable){
        executorService.submit(runnable);


    }


}
